1. /* srfrrsub.cpp by K.Tsuru */
  2. // function ID = 811 BARDIX
  3. /********************************************************************
  4. SRational class
  5. operator m - n
  6. (x.num/x.den)-(y.num/y.den)=(x.num*y.den-y.num*x.den)/(x.den*y.den)
  7. ********************************************************************/
  8. #ifndef SN_H
  9. #include "sn.h"
  10. #endif
  11. SRational RRSub(const SRational& x, const SRational& y){
  12. SRational z; // z.reduceDone = FALSE;
  13. z.den = x.den*y.den;
  14. IISub(x.num*y.den, y.num*x.den, z.num);
  15. z.reduce(false);
  16. return z;
  17. }

srfrrsub.cpp : last modifiled at 2016/06/26 16:27:44(545 bytes)
created at 2016/06/26 15:57:35
The creation time of this html file is 2016/09/18 20:28:05 (Sun Sep 18 20:28:05 2016).